<template>
  <child :items = "msg"></child>
  <button @click="changeMsg">点击按钮修改值</button>
</template>

<script setup>
import { ref } from 'vue';
import child from './Child2.vue';
let msg = ref([1,2,3,4])
const changeMsg = () => {
    msg.value = [5,6,7,8]
}
</script>

<style>

</style>